<html>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>public llo word!!!</h1>
<p>this is a html page</p>
<h1>测试Rest风格</h1>
<form action="/user" method="get">
    <input value="REST-GET 提交" type="submit"/>
</form>
<form action="/user" method="post">
    <input value="REST-POST 提交" type="submit"/>
</form>

<form action="/user" method="post">
    <input name="_method" type="hidden" value="DELETE"/>
    <input name="_m" type="hidden" value="DELETE"/>
    <input value="REST-DELETE 提交" type="submit"/>
</form>

<form action="/user" method="post">
    <input name="_method" type="hidden" value="put"/>
    <input value="REST-PUT 提交" type="submit"/>
</form>
<br/>
测试基本注解
<a href="/car/2/owner/lisi?age=18&inters=buscatball&inters=game">/car/{id}/owner/{userName}</a>
<ul>
    <li>@PathVariable（路径变量）</li>
    <li>@RequestHeader（获取请求头）</li>
    <li>@RequestParam（获取请求参数）</li>
    <li>@CookieValue（获取Cookie）</li>
    <li>@RequestAttribute（获取request域属性）</li>
    <li>@RequestBody（获取请求体）</li>
    <li>@MartrixVariable（获取矩阵变量）</li>
</ul>

<br/>
<a href="/cars/sell;low=34;brand=byd,audi,yd">@MartrixVariable(矩阵变量)</a>
<a href="/cars/sell;low=34;brand=byd;brand=audi;brand=yd">@MartrixVariable(矩阵变量)</a>
<a href="/boss/1;age=18/2;age=20">@MartrixVariable(矩阵变量) /boss/{bossId}/{empId}</a>
<br/>
<form action="/save" method="post">
    测试@RequestBody获取数据：
    用户名：<input type="text" name="name"/>
    邮箱：<input type="text" name="email"/>
    <input type="submit" value="提交"/>
</form>

<hr/>
测试封装POJO
<form action="/saveUser" method="post">
    姓名： <input  name="userName" value="zhangsan"/> <br/>
    年龄： <input  name="age" value="20"/><br/>
    生日： <input  name="birth" value="2019/01/01"/> <br/>
    <!--宠物姓名：<input  name="pet.name" value="dog"/> <br/>
    宠物年龄：<input  name="pet.age" value="1"/> <br/>-->

    宠物:<input name="pet" value="dog,3"/>
    <input type="submit" value="提交"/>
</form>



</body>
</html>